package com.ll.notice.Factory.impl;

import com.ll.notice.Factory.HospitalFactory;
import com.ll.notice.entity.SmsNotice;
import com.ll.notice.ws.client.chencun.WebServiceSMS;
import com.ll.notice.ws.client.chencun.WebServiceSMSSoap;
import com.ll.notice.ws.client.shunde.*;
import org.apache.log4j.Logger;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;

public class ChencunHospitalFactoryImpl implements HospitalFactory {

    private final static Logger log = Logger.getLogger(ChencunHospitalFactoryImpl.class);
    @Override
    public void sendSms(SmsNotice smsNotice) {


        WebServiceSMS serviceSMS = new WebServiceSMS();
        WebServiceSMSSoap webServiceSMSSoap = serviceSMS.getWebServiceSMSSoap();
        String returnString = webServiceSMSSoap.sendYGMessage(smsNotice.getAttendingDoctorId(),null,"0","admin",
                smsNotice.getSmsContent(),null,0,null, UUID.randomUUID().toString());
        log.info("消息体返回：" + returnString);
    }
}
